import AppNavigator from "../layouts/Navigation/navigationStack";
const initalState = AppNavigator.router.getStackForAction(
  AppNavigator.router.getActionForPathAndParams("screen1")
);
const navigationReducer = (state = initialState, action) => {
  const newState = AppNavigator.router.getStateForAction(action, state);
  return newState || state;
};
export default navigationReducer;
